home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Contributions / Haage_&_Partner / Storm-Projects / andExtra / andstring.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-26  |  286 b   |  17 lines

  1. #include <stdlib.h>
  2. #include <string.h>
  3.  
  4. long stch_l(char *s,long *l) {
  5.     *l = strtol(s,NULL,16);
  6.     return(strlen(s));
  7. }
  8.  
  9. long stcul_d(char *s,unsigned long *l) {
  10.     *l = strtol(s,NULL,10);
  11.     return(strlen(s));
  12. }
  13.  
  14. long stcl_d(char *s,long *l) {
  15.     *l = strtol(s,NULL,10);
  16.     return(strlen(s));
  17. }